package org.witsoft.dtx.service;

import org.witsoft.dtx.domain.GlobalStatus;
import org.witsoft.dtx.domain.GlobalTransaction;

import java.util.List;

/**
 * @author XiaoQing Lin
 * @date 2020-09-18 20:41
 */
public interface GlobalTransactionService {

    void add(GlobalTransaction entity);

    void updateStatus(GlobalTransaction entity);

    GlobalTransaction findById(String id);

    void tryUpdateToCompleted(String id, GlobalStatus status);
}
